package ac.github.os.internal.core.holder.player

import ac.github.os.api.common.entity.EntityAdapter
import ac.github.os.internal.core.holder.EntityCompatible
import ink.ptms.adyeshach.api.event.AdyeshachEntityInteractEvent
import org.bukkit.entity.LivingEntity
import java.util.*

class PlayerInteractAdyEntityHolder(override val event: AdyeshachEntityInteractEvent) : EntityCompatible<AdyeshachEntityInteractEvent>() {
    override val namespace: String
        get() = "player interact ady entity"

    override fun entity(): EntityAdapter {
        val entity = event.entity
        return EntityAdapter(
            entity.uniqueId,
            entity.entityType.bukkitType!!,
            entity.getDisplayName()
        )
    }

}